import sys
import dspy
from doubaoV2 import DoubaoLM

lm = DoubaoLM(api_key=sys.argv[1])
dspy.configure(lm=lm)

# 使用dspy的Predict模块
predictor = dspy.Predict("question -> answer")
result = predictor(question="广州常住人口有多少")
print(result.answer)
